import gorilla, time

print "Initializing crawler"
ws=gorilla.watchserieseu()
serienames=ws.get_serie_names()
print  "Crawler initialized, " + str(len(serienames)) + " series have been cached"
serie=ws.get_serie(serienames[1])
print "Selecting serie: " + serie.name
seasons=serie.get_seasons()
season=seasons[0]
print "Selecting season " + str(season.number)
print "Getting episodes for season " + str(season.number) + " from " + str(len(seasons)) + " number of seasons"
episodes=season.get_episodes()
episode=episodes[0]
print "selecting " + episode.name + " from " + str(len(episodes)) + " number of episodes"
print "getting flv mirrors "
videos=episode.get_videos()
print "valid mirrors are: "
for vid in videos:
	print vid

print "TESTS PASSED!!"